package com.cf.download.dao;

import com.cf.download.dto.UserDto;
import com.cf.download.entity.User;
import com.cf.download.entity.UserExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: YangF
 * @Date: 2020-12-24 15:49
 * @description:
 */
@Mapper
@Repository
public interface UserDao {
    User selectByPrimaryKey(UserDto userDto);

    List<User> queryAll();

    void queryInsert(User user);

    User findUserByName(String username);

    int putUser(User user);

    int deleteByPrimaryKey(Integer id);


    User selectByKey(Integer id);

    User findUserById(Integer id);

}
